package com.icode.gulimall.cart.feign;

import com.icode.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2021-01-10 17:40
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/stringList/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @GetMapping("product/skuinfo/priceinfo")
    R getSkuPriceInfo(@RequestParam("skuIds") List<Long> skuIds);
}
